package com.fastCms.business.frame.daos;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fastCms.business.frame.pojo.entity.CloudMenu;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 平台菜单表 Mapper 接口
 * </p>
 *
 * @author liusq
 * @since 2019-05-27
 */
@Repository
public interface CloudMenuMapper extends BaseMapper<CloudMenu> {

    List<CloudMenu> findByRoleId(@Param("roleId") String roleId, @Param("functionType") String functionType);

    List<CloudMenu> findByUserId(@Param("userId") String userId);

    List<CloudMenu> findMenuPointByUser(@Param("userId") String userId, @Param("menuId") String menuId);


    int deleteByRoleId(@Param("roleId") String roleId);


}
